<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" import="java.util.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>嘉华留学网取回密码</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="resource/css/css.css" rel="stylesheet" type="text/css" />
	<link href="resource/css/tocb.css" rel="stylesheet" type="text/css" />
	<script language="JavaScript" src="resource/js/net.js"></script>
	<style type="text/css">
		<!--
		body {
			margin-top: 0px;
			margin-left: 0px;
			margin-right: 0px;
			margin-bottom: 0px;
		}
		.right {color: #FF9900}
		.STYLE5 {color: #000000;font-size: 12px;}
		.error {color: #000CCC;font-size: 12px;}
		.STYLE8 {color: #FFFFFF; font-weight: bold;font-size: 12px; }
		.STYLE10 {color: #000000; font-weight: bold; }
		-->
	</style>
	
	<script language="javascript">
		function validata(rand){
			var number=document.myform.number.value;
			if(number.length<1){
				alert("验证码需要填写");
				return;
			}
			if(rand != number){
				alert("验证码输入错误");
				return;
			}
		  	if(document.myform.nickName.value.length<1){
				alert("昵称必须填写");
				return;
			}
			document.myform.submit();		
		}
	</script>
 	
</head>  
<body>
 <table width="258" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td><img src="resource/img/big_n.gif" width="718" height="27" /></td>
   </tr>   
   <tr>
      <td valign="top">
	     <table width="100%" border="0" cellpadding="0" cellspacing="10" class="text">
            <tr>
               <td align="align">
                 <form name="myform" action="retakePwdAction.do" method="POST">
                   <table width="100%">
                     <tr>
                       <td width="30%"><span class="bigText">登陆昵称:</span></td>
                       <td width="60%"><input type="text" name="nickName"></td>
                       <td width="10%">&nbsp;</td>                     
                     </tr>
                     <tr>
                         <td><span class="bigText">验证码:</span></td>
                         <td>                           
                             <input type="text" name="number" size=4 maxlength="8">                           
                             <jsp:include flush="true" page="rand.jsp" />                         
                         </td>                           
                         <td></td>
                     </tr>
                     <tr>
                   	   <td>&nbsp;</td>
                       <td><input type="button" onclick="validata('<%=session.getAttribute("rand")%>')" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;
                           <input type="reset" value="取消">
                           </td>
                       <td>&nbsp;</td>
                     </tr>                                    
                   </table> 
                 </form> 
               </td>
            </tr>
            <tr>
               <td><span style="color:red;padding:10px;font-size:16px;">${requestScope.message }</span></td>
            </tr>
         </table>
	  </td>
   </tr>
</table>
</body>
</html>
